import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers/index';

const store = createStore(
    rootReducer,
    compose(
      applyMiddleware(...[thunk]), // 需要使用的中间件数组
    )
  ) // 创建一个storage
export default store;